package controllers;

import java.util.ArrayList;

public class CoreCollection {
	private ArrayList<Core> coreCollection;
	
	public CoreCollection() {
		coreCollection = new ArrayList<Core>();
	}

	public Core newCore(int playerNr) {
		coreCollection.add(playerNr, new Core(playerNr));
		return coreCollection.get(playerNr);
	}
	
	public Core getCore(int playerNr) {
		return coreCollection.get(playerNr);
	}

}
